Cod 1293 resolve file path inside codspeed go#12
Conversation
4d0c5ed to
4df13ff
Compare
daaef78 to
b0d22b7
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR resolves file path issues in the CodSpeed Go runner by implementing a metadata-based approach to determine Git-relative paths for benchmark files. Instead of relying on environment variables, the system now creates a go-runner.metadata file containing profile folder and relative package path information, which is then used by the Go testing framework to generate proper URIs for benchmark results.
Key changes include:
- Implemented metadata file generation and parsing in Go testing framework
- Modified benchmark result structure to include both name and URI fields
- Refactored profile directory handling to be passed as parameters instead of environment variables
Reviewed Changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| testing/testing/codspeed.go | New file implementing metadata parsing and Git-relative path resolution |
| testing/testing/benchmark.go | Updated to use metadata for file path resolution and generate proper benchmark URIs |
| go-runner/src/builder/templater.rs | Modified to generate go-runner.metadata file with profile and path information |
| go-runner/src/lib.rs | Refactored to pass profile directory as parameter instead of using environment variables |
| go-runner/src/results/raw_result.rs | Updated RawResult struct to include URI field and simplified benchmark creation |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
1b50d0a to
c0de34e
Compare
4df13ff to
f9ddc46
Compare
bc9c62e to
a209282
Compare
f9ddc46 to
01ecfc8
Compare
CodSpeed Performance ReportMerging #12 will degrade performances by 33.94%Comparing Summary
Benchmarks breakdown
Footnotes |
a209282 to
34f5844
Compare
01ecfc8 to
0133765
Compare
34f5844 to
7cd6ee5
Compare
0133765 to
b20d439
Compare
b20d439
into
cod-1284-dx-improvements-for-codspeed-go
No description provided.